import request from '@/utils/request'

//新增订单
export function addOrder(data) {
  console.log(data);
  return request({
    url: 'charge/order',
    method: 'post',
    data: data
  })
}

//修改订单状态
export function updateOrder(pid) {
  console.log(pid);
  return request({
    url: 'charge/order',
    method: 'get',
    params: {pid: pid}
  })
}
